home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr11 / pctv4n2.zip / SHADES.ZIP / MAKEFILE < prev    next >
Text File  |  1993-02-27  |  5KB  |  155 lines

  1. #* ----------------------------------------------------------- *#
  2. #*  makefile -- Multi-file MAKE file shell                     *#
  3. #* ----------------------------------------------------------- *#
  4. #*                                                             *#
  5. #*  To add an object-code file to project:                     *#
  6. #*    1. Add .OBJ filename to LDEPENDS macro                   *#
  7. #*    2. Add same .OBJ filename to object-code file list       *#
  8. #*    3. Optionally add explicit dependency for file           *#
  9. #*                                                             *#
  10. #*  To add a library file to project:                          *#
  11. #*    1. Add .LIB filename to library file list                *#
  12. #*                                                             *#
  13. #*  To add or modify a compiler option:                        *#
  14. #*    1. Edit compiler configuration file section              *#
  15. #*                                                             *#
  16. #*  To add or modify a linker option:                          *#
  17. #*    1. Edit linker configuration file section                *#
  18. #*                                                             *#
  19. #* ----------------------------------------------------------- *#
  20. #*     Copyright (c) 1993 by Tom Swan. All rights reserved.    *#
  21. #* ----------------------------------------------------------- *#
  22.  
  23. # ---------------------------------------------------------------
  24. #  Various macros
  25. # ---------------------------------------------------------------
  26. # CC           Compiler filename (bcc)
  27. # LINK         Linker filename (tlink)
  28. # CFG          Compiler configuration file (turboc.cfg)
  29. # LCFG         Linker configuration file (tlink.cfg)
  30. # LISTOBJ      File containing object-code filenames
  31. # LISTLIB      File containing library filenames
  32. # LIBPATH      Path(s) to library (.lib) files
  33. # INCPATH      Path(s) to include (.h) files
  34. # RCPATH       Path(s) to include (.h) files for RC.EXE
  35.  
  36. CC = bcc
  37. LINK = tlink
  38. CFG = turboc.cfg
  39. LCFG = tlink.cfg
  40. LISTOBJ = obj.lst
  41. LISTLIB = lib.lst
  42. LIBPATH = C:\borlandc\owl\lib;C:\borlandc\classlib\lib;C:\borlandc\lib
  43. INCPATH = C:\borlandc\owl\include;C:\borlandc\classlib\include;C:\borlandc\include
  44. RCPATH = C:\borlandc\include
  45.  
  46. # ---------------------------------------------------------------
  47. #  Linker dependencies (i.e. files that MULTI.EXE depends on)
  48. # ---------------------------------------------------------------
  49.  
  50. LDEPENDS = $(LISTOBJ) $(LISTLIB) $(LCFG)\
  51.  multi.res\
  52.  multi.obj\
  53.  frame.obj\
  54.  cmfile.obj\
  55.  multi.def
  56.  
  57. # ---------------------------------------------------------------
  58. #  Implicit dependency rules
  59. # ---------------------------------------------------------------
  60.  
  61. .c.obj:
  62.   $(CC) -c {$< }
  63.  
  64. .cpp.obj:
  65.   $(CC) -c {$< }
  66.  
  67. # ---------------------------------------------------------------
  68. #  Explicit dependencies and rules
  69. # ---------------------------------------------------------------
  70.  
  71. multi.exe: $(LDEPENDS)
  72.   $(LINK) @$(LISTOBJ),multi.exe,multi.map,@$(LISTLIB),multi.def
  73.   RC multi.res multi.exe
  74.  
  75. multi.obj: $(CFG) multi.cpp frame.h
  76.  
  77. frame.obj: $(CFG) frame.cpp frame.h
  78.  
  79. cmfile.obj: $(CFG) cmfile.cpp frame.h
  80.  
  81. multi.res: $(CFG) multi.rc multi.rch
  82.   RC -r -i$(RCPATH) -fo multi.res MULTI.RC
  83.  
  84. # ---------------------------------------------------------------
  85. #  Create object-code file list for linker
  86. #  Insert .OBJ filenames between "|" delimiters
  87. # ---------------------------------------------------------------
  88.  
  89. $(LISTOBJ): makefile
  90.   copy &&|
  91. c0wl.obj+
  92. multi.obj+
  93. frame.obj+
  94. cmfile.obj
  95. | $(LISTOBJ)
  96.  
  97. # ---------------------------------------------------------------
  98. #  Create library file list for linker
  99. #  Insert .LIB filenames between "|" delimiters
  100. # ---------------------------------------------------------------
  101.  
  102. $(LISTLIB): makefile
  103.   copy &&|
  104. tclassl.lib+
  105. owlwl.lib+
  106. mathwl.lib+
  107. import.lib+
  108. cwl.lib
  109. | $(LISTLIB)
  110.  
  111. # ---------------------------------------------------------------
  112. #  Create linker configuration file
  113. #  Insert linker options between "|" delimiters
  114. # ---------------------------------------------------------------
  115.  
  116. $(LCFG): makefile
  117.   copy &&|
  118. /v
  119. /c
  120. /P-
  121. /Twe
  122. /L$(LIBPATH) 
  123. | $(LCFG)
  124.  
  125. # ---------------------------------------------------------------
  126. #  Create compiler configuration file
  127. #  Insert compiler options between "|" delimiters
  128. # ---------------------------------------------------------------
  129.  
  130. $(CFG): makefile
  131.   copy &&|
  132. -R
  133. -ml
  134. -2
  135. -v
  136. -W
  137. -vi-
  138. -H=MULTI.SYM
  139. -w
  140. -I$(INCPATH)
  141. -L$(LIBPATH)
  142. -DSTRICT;WIN31
  143. | $(CFG)
  144.  
  145. # ---------------------------------------------------------------
  146. #  Delete backups, obj, exe, and miscellaneous files
  147. #  Enter MAKE CLEAN to use
  148. # ---------------------------------------------------------------
  149.  
  150. clean:
  151.   del *.bak
  152.   del *.obj
  153.   del *.exe
  154.   del *.map
  155.